package com.lhl.fw.core.base;

import io.swagger.annotations.Api;

/**
 * @className: com.lhl.fw.core.base.BaseEnum
 * @description: 枚举基类
 * @author: king
 * @date: 2020-11-16
 **/
@Api(tags = "BaseEnum", produces = "枚举基类")
public interface BaseEnum<K> {
    /**
     * 真正与数据库进行映射的值
     *
     * @return
     */
    K getCode();

    /**
     * 显示的信息
     *
     * @return
     */
    String getDisplayName();
}
